<template>
  <div class="container">
    <div class="side-bar">
      <router-link to="/login">登录</router-link>
      <router-link to="/student">学生列表</router-link>
      <router-link to="/goodsshow">商品展示1</router-link>
      <router-link to="/goodsshow2">商品展示2</router-link>
      <router-link to="/friend">朋友组件</router-link>
      <router-link to="/todo">待办事项</router-link>
      <router-link to="/weather/南京">天气</router-link>
      <router-link to="/shop">购物车</router-link>
      <router-link to="/nest">嵌套路由</router-link>
    </div>
    <div class="main-content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  height: 100%;
  display: flex;
}
.side-bar {
  width: 200px;
  height: 100%;
  border-right: 3px solid gray;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.main-content {
  flex: 1;
  height: 100%;
}
</style>
